﻿<UserControl x:Class="DIST.LR.ZHJG.Pgybc.Zbgl_View"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">

    <UserControl.Resources>
        <SolidColorBrush Color="#d6d4d4" x:Key="BorderBrush"/>
        <Style TargetType="TextBlock" x:Key="TitleStyle">
            <Setter Property="Foreground" Value="#25a0da" />
            <Setter Property="FontSize" Value="23" />
            <Setter Property="FontFamily" Value="/Telerik.Windows.QuickStartUITheme;component/Fonts/MyriadPro-Light.otf#Myriad Pro Light" />
            <Setter Property="Margin" Value="10 5" />
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="HorizontalAlignment" Value="Center"/>
        </Style>
        <Style TargetType="TextBlock" x:Key="TitleStyleL">
            <Setter Property="Foreground" Value="Green" />
            <Setter Property="FontSize" Value="15" />
            <Setter Property="Margin" Value="20" />
            <Setter Property="FontFamily" Value="/DIST.LR.ZHJG.Utility.Silverlight;component/Fonts/Fonts.zip#Microsoft YaHei"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="HorizontalAlignment" Value="Right"/>
        </Style>
        <Style TargetType="TextBlock" x:Key="TitleStyleR">
            <Setter Property="Foreground" Value="Green" />
            <Setter Property="FontSize" Value="15" />
            <Setter Property="Margin" Value="20" />
            <Setter Property="FontFamily" Value="/DIST.LR.ZHJG.Utility.Silverlight;component/Fonts/Fonts.zip#Microsoft YaHei"/>
            <Setter Property="VerticalAlignment" Value="Center"/>
            <Setter Property="HorizontalAlignment" Value="Left"/>
        </Style>
    </UserControl.Resources>

    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid Margin="10,5,5,5">
            <Grid.RowDefinitions>
                <RowDefinition Height="0.15*"></RowDefinition>
                <RowDefinition Height="*"></RowDefinition>
            </Grid.RowDefinitions>
            <Border BorderBrush="{StaticResource BorderBrush}" BorderThickness="1 1 1 1">
                <TextBlock Text="指 标 详 细 信 息" Style="{StaticResource TitleStyle}"/>
            </Border>
            <Border Background="Transparent" BorderBrush="{StaticResource BorderBrush}" BorderThickness="1 0 1 1" Grid.Row="1">
            </Border>
            <Grid Grid.Row="1">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"></ColumnDefinition>
                    <ColumnDefinition Width="*"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="*"></RowDefinition>
                    <RowDefinition Height="*"></RowDefinition>
                </Grid.RowDefinitions>
                <Grid Grid.Row="0" Margin="5 5 2.5 5">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="0.2*"></RowDefinition>
                        <RowDefinition Height="*"></RowDefinition>
                    </Grid.RowDefinitions>
                    <Border Background="#FF3D6CAD" BorderBrush="{StaticResource BorderBrush}" BorderThickness="1 1 1 1">
                        <TextBlock Text="指标配置信息" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                    </Border>
                    <Border Background="Transparent" BorderBrush="{StaticResource BorderBrush}" BorderThickness="1 0 1 1" Grid.Row="1">
                    </Border>
                    <Grid Grid.Row="1">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="0.5*"></ColumnDefinition>
                            <ColumnDefinition Width="*"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"></RowDefinition>
                            <RowDefinition Height="*"></RowDefinition>
                            <RowDefinition Height="*"></RowDefinition>
                            <RowDefinition Height="*"></RowDefinition>
                        </Grid.RowDefinitions>
                        <StackPanel Grid.Column="0">
                            <TextBlock Text="指标名称:" Style="{StaticResource TitleStyleL }"></TextBlock>
                        </StackPanel>
                        <StackPanel Grid.Column="0" Grid.Row="1">
                            <TextBlock Text="指标解释:" Style="{StaticResource TitleStyleL }"></TextBlock>
                        </StackPanel>
                        <StackPanel Grid.Column="0" Grid.Row="2">
                            <TextBlock Text="指标单位:" Style="{StaticResource TitleStyleL }"></TextBlock>
                        </StackPanel>
                        <StackPanel Grid.Column="0" Grid.Row="3">

                        </StackPanel>
                        <StackPanel Grid.Column="1">
                            <TextBlock Text="{Binding KPIName}" Style="{StaticResource TitleStyleR}"></TextBlock>
                        </StackPanel>
                        <StackPanel Grid.Column="1" Grid.Row="1">
                            <TextBlock Text="{Binding KPIDescption}" Style="{StaticResource TitleStyleR}"></TextBlock>
                        </StackPanel>
                        <StackPanel Grid.Column="1" Grid.Row="2">
                            <TextBlock Text="{Binding KPIUnit}" Style="{StaticResource TitleStyleR}"></TextBlock>
                        </StackPanel>
                        <StackPanel Grid.Column="1" Grid.Row="3">

                        </StackPanel>
                    </Grid>
                </Grid>

                <Grid Grid.Row="0" Grid.Column="1" Margin="2.5 5 5 5">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="0.2*"></RowDefinition>
                        <RowDefinition Height="*"></RowDefinition>
                    </Grid.RowDefinitions>
                    <Border Background="#FF3D6CAD" BorderBrush="{StaticResource BorderBrush}" BorderThickness="1 1 1 1">
                        <TextBlock Text="指标值信息" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                    </Border>
                    <Border Background="Transparent" BorderBrush="{StaticResource BorderBrush}" BorderThickness="1 0 1 1" Grid.Row="1">
                    </Border>
                    <Grid Grid.Row="1">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="0.5*"></ColumnDefinition>
                            <ColumnDefinition Width="*"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"></RowDefinition>
                            <RowDefinition Height="*"></RowDefinition>
                            <RowDefinition Height="*"></RowDefinition>
                            <RowDefinition Height="*"></RowDefinition>
                        </Grid.RowDefinitions>
                        <StackPanel Grid.Column="0">
                            <TextBlock Text="开始时间:" Style="{StaticResource TitleStyleL }"></TextBlock>
                        </StackPanel>
                        <StackPanel Grid.Column="0" Grid.Row="1">
                            <TextBlock Text="统计值:" Style="{StaticResource TitleStyleL }"></TextBlock>
                        </StackPanel>
                        <StackPanel Grid.Column="0" Grid.Row="2">
                            <TextBlock Text="结束时间:" Style="{StaticResource TitleStyleL }"></TextBlock>
                        </StackPanel>
                        <StackPanel Grid.Column="0" Grid.Row="3">

                        </StackPanel>
                        <StackPanel Grid.Column="1">
                            <TextBlock Text="{Binding KPIVALUEStartTime}" Style="{StaticResource TitleStyleR}"></TextBlock>
                        </StackPanel>
                        <StackPanel Grid.Column="1" Grid.Row="1">
                            <TextBlock Text="{Binding KPIVALUEValue}" Style="{StaticResource TitleStyleR}"></TextBlock>
                        </StackPanel>
                        <StackPanel Grid.Column="1" Grid.Row="2">
                            <TextBlock Text="{Binding KPIVALUECreateTiem}" Style="{StaticResource TitleStyleR}"></TextBlock>
                        </StackPanel>
                        <StackPanel Grid.Column="1" Grid.Row="3">

                        </StackPanel>
                    </Grid>
                </Grid>

                <Grid Grid.Row="1" Grid.ColumnSpan="2" Margin="5 0 5 5">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="0.2*"></RowDefinition>
                        <RowDefinition Height="*"></RowDefinition>
                    </Grid.RowDefinitions>
                    <Border Background="#FF3D6CAD" BorderBrush="{StaticResource BorderBrush}" BorderThickness="1 1 1 1">
                        <TextBlock Text="指标来源信息" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                    </Border>
                    <Border Background="Transparent" BorderBrush="{StaticResource BorderBrush}" BorderThickness="1 0 1 1" Grid.Row="1">
                    </Border>
                    <Grid Grid.Row="1">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="0.5*"></ColumnDefinition>
                            <ColumnDefinition Width="*"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"></RowDefinition>
                            <RowDefinition Height="*"></RowDefinition>
                            <RowDefinition Height="*"></RowDefinition>
                            <RowDefinition Height="*"></RowDefinition>
                        </Grid.RowDefinitions>
                        <StackPanel Grid.Column="0">
                            <TextBlock Text="指标来源名称:" Style="{StaticResource TitleStyleL }"></TextBlock>
                        </StackPanel>
                        <StackPanel Grid.Column="0" Grid.Row="1">
                            <TextBlock Text="计算SQL语句:" Style="{StaticResource TitleStyleL }"></TextBlock>
                        </StackPanel>
                        <StackPanel Grid.Column="0" Grid.Row="2">
                            <TextBlock Text="更新周期:" Style="{StaticResource TitleStyleL }"></TextBlock>
                        </StackPanel>
                        <StackPanel Grid.Column="0" Grid.Row="3">

                        </StackPanel>
                        <StackPanel Grid.Column="1">
                            <TextBlock Text="{Binding KPIORIGINName}" Style="{StaticResource TitleStyleR}"></TextBlock>
                        </StackPanel>
                        <StackPanel Grid.Column="1" Grid.Row="1">
                            <TextBlock Text="{Binding KPIORIGINComputeSql}" Style="{StaticResource TitleStyleR}"></TextBlock>
                        </StackPanel>
                        <StackPanel Grid.Column="1" Grid.Row="2">
                            <TextBlock Text="{Binding KPIORIGINUpdateCycle}" Style="{StaticResource TitleStyleR}"></TextBlock>
                        </StackPanel>
                        <StackPanel Grid.Column="1" Grid.Row="3">

                        </StackPanel>
                    </Grid>
                </Grid>
            </Grid>
        </Grid>
    </Grid>
</UserControl>
